<?php use_helper('Date', 'Number') ?>

<?php slot('title', __('%category% - page %page% on %total%', array(
  '%category%' => $category->getName(),
  '%page%' => $pager->getPage(),
  '%total%' => $pager->getLastPage()
))) ?>

<?php slot('main_title', __('%category% - page %page% on %total%', array(
  '%category%' => $category->getName(),
  '%page%' => $pager->getPage(),
  '%total%' => $pager->getLastPage()
))) ?>

<?php include_partial('list', array('pager' => $pager)) ?>

<?php include_partial('global/pager', array('pager' => $pager, 'route' => 'blog_by_category', 'params' => array('category' => $category->getSlug()))) ?>

<div class="pagination_desc">
  <?php echo format_number_choice(
    '[0]No post in category %name%|[1]<strong>1</strong> post in category %name%|(1,+Inf]<strong>%1%</strong> posts in category %name%', 
    array('%1%' => $pager->getNbResults(), '%name%' => $category->getName()), $pager->getNbResults()) ?>

  <?php if ($pager->haveToPaginate()): ?>
    - <?php echo __('page %current% on %last%', array(
        '%current%' => '<strong>'. $pager->getPage() .'</strong>',
        '%last%' => '<strong>'. $pager->getLastPage() .'</strong>'
      )) ?>
  <?php endif ?>
</div>